package com.ytzl.bug_project.controller;

import com.ytzl.bug_project.entity.Bug_project;
import com.ytzl.bug_project.service.Bug_projectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/bug_project")
@Api(tags="bug详情管理")
public class Bug_projectController {
    @Resource
    private Bug_projectService bug_projectService;

    @ApiOperation("查询项目全部")
    @GetMapping("/query")
    public List<Bug_project> select(){
        return bug_projectService.query(null);
    }
}
